package com.medical.interrogation.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class DiagnosticRecord {
    /**
     * 记录id
     */
    private Long diagnoseId;

    /**
     * 医院id
     */
    private Long hospitalId;

    /**
     * 科室id
     */
    private Long departmentId;

    /**
     * 患者id
     */
    private Long patientId;

    /**
     * 医生id
     */
    private Long doctorId;

    /**
     * 诊断结果
     */
    private String diagnosis;

    /**
     * 诊断时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date diagnoseTime;

    /**
     * 诊断金额
     */
    private BigDecimal diagnosePrice;
}
